< previous page page_75 next page >

Page 75
Table 4.1 List Box Control Properties.
PropertyDescription
ColumnsThe number of snaking columns you want to have displayed in the list box.
IntegralHeightSet this property to True if you want to have Visual Basic calculate the height for the control based on the current font size.
ItemDataAn internal numeric array that parallels the List array.
ListAn array of the values placed in the list box control.
MultiSelectSet this property to 0-None, 1-Simple, or 2-Extended.
NameSet this property to the value you want to use to refer to this control in your code. You should preface the name with the letters lst for consistency with accepted industry naming standards.
SelCountA runtime-only property that returns the number of highlighted or selected items in the list.
SelectedA runtime-only property thats an array of True and False values corresponding to the items selected in the list.
SortedSet this property to True to have the items added to the list box to be displayed in a sorted order.
StyleSet this property to 0-Standard or 1-CheckBox.

Combo Box Control
A combo box is a combination of a text box and a list box. This control is used when you want to present a list of items to the user, but you dont have a lot of real estate on your form. The list portion of this combo box will be dropped down a certain number of rows to show the list to the user.
The combo box control has three different styles that can be set. First, it can be set to 0-DropDown Combo. With this style, you can either type text into the text portion of the combo box or select a value from the drop-down list.
The second style is 1-Simple. This style looks like a list box sitting directly underneath a text box. If you select an item in the list, it puts the value into the text box portion. Youre also allowed to type text into the text box portion of the combo box. Of course if you choose this style, you will need to extend the height of the combo box to see all the items in the list.

 
< previous page page_75 next page >

If you like this book, buy it!